import Cookies from 'js-cookie'

const TokenKey = 'hmhr72'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}



//设置一个时间戳的key
const TiemKey = 'HMHR-tiem'
// 取
export function getTiem() {
  return Cookies.get(TiemKey)
}
//存
export function setTiem() {
  return Cookies.set(TiemKey,Date.now())
}
// 删
export function removeTiem() {
  return Cookies.remove(TiemKey)
}